<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script>
    if(0){
        console.log("0相当于false");
    }
    if(1){
        console.log("除了0都相当于true");
    }
</script>
</body>
</html>